package cn.ichiva.dl.tushare.tu;

import cn.ichiva.tushare.sdk.tushare.TuCacheConfig;
import cn.ichiva.tushare.sdk.tushare.TuConfig;

import java.io.File;

public interface Config {
    String url = "http://api.waditu.com/";
    String token = "bb7f691a6d779a0d073853c33010a64576a9ab523b6b2668b2235030";
    String cacheDir = "./level-db";

    TuConfig tuConfig = new TuCacheConfig() {
        @Override
        public File getCacheFile() {
            return new File(cacheDir);
        }

        @Override
        public String getUrl() {
            return Config.url;
        }

        @Override
        public String getToken() {
            return Config.token;
        }
    };
}
